<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/webjars/bootstrap/4.6.1/css/bootstrap.min.css"/>
    <script src="${pageContext.request.contextPath}/webjars/jquery/3.5.1/jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/webjars/bootstrap/4.6.1/js/bootstrap.min.js"></script>
    <title>index</title>
</head>

<body>
<h2><a href="${pageContext.request.contextPath}/selectAll">用户信息</a></h2>
<form action="${pageContext.request.contextPath}/deleteUserInfo" method="post">
    <input type="text" name="id" placeholder="id">
    <input type="submit" value="删除">
</form>
<form action="${pageContext.request.contextPath}/updateUserInfo" method="post">
    <input type="text" name="id" placeholder="id">
    <input type="text" name="userName" placeholder="用户名">
    <input type="text" name="password" placeholder="密码">
    <input type="text" name="gender" placeholder="性别">
    <input type="text" name="addr" placeholder="地址">
    <input type="submit" value="更新">
</form>
<form action="${pageContext.request.contextPath}/addUserInfo" method="post">
    <input type="text" name="userName" placeholder="用户名">
    <input type="text" name="password" placeholder="密码">
    <input type="text" name="gender" placeholder="性别">
    <input type="text" name="addr" placeholder="地址">
    <input type="submit" value="插入">
</form>

</body>
</html>
